package com.wcm.system.model.difangzhi;

import javax.persistence.*;

@Entity
@Table(name = "cms_fs_names", schema = "dataexchange_difangzhi", catalog = "")
public class CmsFsNamesEntity {
    private String fsNamesId;
    private String resId;
    private String title;
    private String subTitle;
    private String shortTitle;
    private String source;
    private String creator;
    private String sourceType;
    private String fileName;
    private String extension;
    private String currentFilePath;
    private String currentFileVer;
    private long createdTime;
    private String memo;
    private String content;

    @Id
    @Column(name = "FS_NAMES_ID")
    public String getFsNamesId() {
        return fsNamesId;
    }

    public void setFsNamesId(String fsNamesId) {
        this.fsNamesId = fsNamesId;
    }

    @Basic
    @Column(name = "RES_ID")
    public String getResId() {
        return resId;
    }

    public void setResId(String resId) {
        this.resId = resId;
    }

    @Basic
    @Column(name = "TITLE")
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Basic
    @Column(name = "SUB_TITLE")
    public String getSubTitle() {
        return subTitle;
    }

    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }

    @Basic
    @Column(name = "SHORT_TITLE")
    public String getShortTitle() {
        return shortTitle;
    }

    public void setShortTitle(String shortTitle) {
        this.shortTitle = shortTitle;
    }

    @Basic
    @Column(name = "SOURCE")
    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    @Basic
    @Column(name = "creator")
    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    @Basic
    @Column(name = "SOURCE_TYPE")
    public String getSourceType() {
        return sourceType;
    }

    public void setSourceType(String sourceType) {
        this.sourceType = sourceType;
    }

    @Basic
    @Column(name = "FILE_NAME")
    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    @Basic
    @Column(name = "EXTENSION")
    public String getExtension() {
        return extension;
    }

    public void setExtension(String extension) {
        this.extension = extension;
    }

    @Basic
    @Column(name = "CURRENT_FILE_PATH")
    public String getCurrentFilePath() {
        return currentFilePath;
    }

    public void setCurrentFilePath(String currentFilePath) {
        this.currentFilePath = currentFilePath;
    }

    @Basic
    @Column(name = "CURRENT_FILE_VER")
    public String getCurrentFileVer() {
        return currentFileVer;
    }

    public void setCurrentFileVer(String currentFileVer) {
        this.currentFileVer = currentFileVer;
    }

    @Basic
    @Column(name = "CREATED_TIME")
    public long getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(long createdTime) {
        this.createdTime = createdTime;
    }

    @Basic
    @Column(name = "MEMO")
    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    @Basic
    @Column(name = "content")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CmsFsNamesEntity that = (CmsFsNamesEntity) o;

        if (createdTime != that.createdTime) return false;
        if (fsNamesId != null ? !fsNamesId.equals(that.fsNamesId) : that.fsNamesId != null) return false;
        if (resId != null ? !resId.equals(that.resId) : that.resId != null) return false;
        if (title != null ? !title.equals(that.title) : that.title != null) return false;
        if (subTitle != null ? !subTitle.equals(that.subTitle) : that.subTitle != null) return false;
        if (shortTitle != null ? !shortTitle.equals(that.shortTitle) : that.shortTitle != null) return false;
        if (source != null ? !source.equals(that.source) : that.source != null) return false;
        if (creator != null ? !creator.equals(that.creator) : that.creator != null) return false;
        if (sourceType != null ? !sourceType.equals(that.sourceType) : that.sourceType != null) return false;
        if (fileName != null ? !fileName.equals(that.fileName) : that.fileName != null) return false;
        if (extension != null ? !extension.equals(that.extension) : that.extension != null) return false;
        if (currentFilePath != null ? !currentFilePath.equals(that.currentFilePath) : that.currentFilePath != null)
            return false;
        if (currentFileVer != null ? !currentFileVer.equals(that.currentFileVer) : that.currentFileVer != null)
            return false;
        if (memo != null ? !memo.equals(that.memo) : that.memo != null) return false;
        if (content != null ? !content.equals(that.content) : that.content != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = fsNamesId != null ? fsNamesId.hashCode() : 0;
        result = 31 * result + (resId != null ? resId.hashCode() : 0);
        result = 31 * result + (title != null ? title.hashCode() : 0);
        result = 31 * result + (subTitle != null ? subTitle.hashCode() : 0);
        result = 31 * result + (shortTitle != null ? shortTitle.hashCode() : 0);
        result = 31 * result + (source != null ? source.hashCode() : 0);
        result = 31 * result + (creator != null ? creator.hashCode() : 0);
        result = 31 * result + (sourceType != null ? sourceType.hashCode() : 0);
        result = 31 * result + (fileName != null ? fileName.hashCode() : 0);
        result = 31 * result + (extension != null ? extension.hashCode() : 0);
        result = 31 * result + (currentFilePath != null ? currentFilePath.hashCode() : 0);
        result = 31 * result + (currentFileVer != null ? currentFileVer.hashCode() : 0);
        result = 31 * result + (int) (createdTime ^ (createdTime >>> 32));
        result = 31 * result + (memo != null ? memo.hashCode() : 0);
        result = 31 * result + (content != null ? content.hashCode() : 0);
        return result;
    }
}
